import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const USERCENTER: AppRouteRecordRaw = {
  path: '/userCenter',
  name: 'userCenter',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '用户中心',
    requiresAuth: true,
    roles: ['admin'],
    icon: 'icon-dashboard',
    order: 999,
  },
  children: [
    {
      path: 'info',
      name: 'info',
      component: () => import('@/views/userCenter/info.vue'),
      meta: {
        locale: '个人信息',
        requiresAuth: true,
      },
    },
    {
      path: 'modifyPassword',
      name: 'modifyPassword',
      component: () => import('@/views/userCenter/modifyPassword.vue'),
      meta: {
        locale: '修改密码',
        requiresAuth: true,
      },
    },
  ],
};

export default USERCENTER;
